#pragma once

#include "Drawer.h"
#include "TrueText/ShadowInfo.h"

namespace TrueText {

class TextDrawer;

class ShadowDrawer : public Drawer
{
public:
	ShadowDrawer(Drawer* sourceDrawer, const ShadowInfo& shadowInfo);
public:
	virtual Rectangle GetBounds(const TextLayout& layout);
	virtual boost::shared_ptr<BitmapLayer> Draw(const TextLayout& layout);

	virtual bool IsSource() { return false; }
private:
	Drawer* sourceDrawer;
	ShadowInfo shadowInfo;
};

}